<?php

/**
 * IRaiseSessionStore interface
 * An interface for storing and capturing a session.
 *
 * @author Sam-Mauris Yong <hellclanner at live dot com>
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package Raise.Core.Session
 * @since 1.2
 * @link http://php.net/manual/en/function.session-set-save-handler.php
 */
interface IRaiseSessionStore {
    
    public function open($path, $sessionName);
    public function read($sessionId);
    public function write($sessionId, $data);
    public function destroy($sessionId);
    public function garbageCollect($life);
    public function close();
    public function sessionExist($id);

}
